added basic database functionality
added basic database functionality