Move config and database path to resources.

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