In your classes, create the functions that will do the submitting to the database for you. Pass your values as arguments in the function.