add search by name
Fix capacity search to use BETWEEN condition