Privacy and security improvements
Added basic database tests