working on db and form entry