Database configuration

added ability to configure database.yml dynamically