Resolved Bugs. Now correctly submits data to database.