fixed hardcoded reference to dbName in SQL command