added insert to database