Added code to do the filtering (seems to have gone away). sql/handler.cc: Filtering based on the database for the table.