Insert values into database using active record connection.