Rough database search implemented