Finished integrating the Database model with the Encryption methods