create object and save to db