added getRow function for mysql db model