fix on query object and db revision class installation of profiles table