* removed duplicate SQL query code from BMInterface