App now uses first entry from databases array

This is in place of the hardcoded "dev" reference we had before
Fix build all not finishing

This is why we don't manually exit processes, Rankin! :P