made submissions work with the database