Adding basic database functionality. Must coordinate with DAO to complete.