ProfileEntry get_profile_entry(string db_name, void|string query_name)
Returns a ProfileEntry object with the states needed for commiting searches in the database profile db_name with the rules from query profile query_name .