Inserting recommendation in database