Basic database

Configuration and basic database interaction implemented.