add support for environments
db connection for each model
optimize support of multi db_env