Authorization bugfixing, added search DB stub