database config fix typo
update gem file to support multi environment