repair database connection, add password protect