creating object builder for db data