added db, working version