added basic database functionality and request parsing