Python Project Structure Using Function Sql