fixed search_postgres_command