connect to database
retrieve the values from $_POST