Insert data into database.