added a promise api to the application called 'fluent', implemented the promises in the databaseFactory and the profileService