added code to add the given parameters to the db