Fix old logic
Add support for environment on database model,change database unique to (database, environment) and improve tsuru integration
Fix Broken tests