Fix setup problems which leads to database connection problem and introduce an encryption flag for security.