Added Record logic for DB, used in User class.