got db working