moved datbase and decorators to the api.
move decorators