basic database engine built - fixed #1