Added basic database, encryption and login support.