Insert data to database