Fixed reestablishConnection method to get the connection name correctly from its Model class.
Added the possibility to use encryption keys for databases.