return object from db when adding