Fixed database inserts