get db working