added postgresql gem 'pg' to project
updated development and test databases to user postgresql instead of sqlite3
added test to make sure that cage code is unique