change runselect to select when getting statdb