got ef and db working