Better database connection files and py-social