Python Project Structure Using Function In Sql