Rails backend for iOS app, guest starring postgresql as the db that could