working on database submit