initial python commit, db querying to json