- added database and email settings to api