moved database service to core application module