Move config and database to resources.

Signed-off-by: crynobone <crynobone@gmail.com>
Remove redundant service provider.

Signed-off-by: crynobone <crynobone@gmail.com>