Only insert necessary data into the db