added first database functionality