some search work, changed how database works a lot