use a database query that works. only need 'application.py' for Elastic Beanstalk