Create object in database