Add heroku db support

Use correct name for longitude
Temporarily use separate queries for different dbs
Add database script