able to submit data to database