Move encryption key to the database