Added wrapclass for db work