Redeclaration of db2 in search_model fixed