[ATM][DB] Fix sql query to search ATM by address