You have two problems which are shown in the output from the OPL-update script that you posted.
First, you have local changes to files in /opt/webwork/libraries/webwork-open-problem-library. As a result git aborts when the script attempts to checkout the release branch. So if the database is updated (it isn't because of the other error),
then the information in the database won't match the files on disk. This is what the following output means:
error: Your local changes to the following files would be overwritten by checkout:
OpenProblemLibrary/Rochester/setTrig03FunctionsRightAngle/srw6_2_11.pg
OpenProblemLibrary/Rochester/setTrig03FunctionsRightAngle/srw6_2_3.pg
OpenProblemLibrary/Rochester/setTrig03FunctionsRightAngle/srw6_2_7.pg
OpenProblemLibrary/UVA-Stew5e/setUVA-Stew5e-C05S04-IndefInts/5-4-07.pg
To fix this remove your local changes on those files. You could copy those files elsewhere, run the OPL-update script, and then copy those files back, if those local changes are something you want.The other issue is
ERROR 1046 (3D000) at line 22: No database selected
that you noticed. This is certainly what is causing the error that is shown when you try to work with the library browser. The database isn't actually being imported from the downloaded metadata release. I am not exactly sure what is causing that, but something isn't right with your setup. First check all of your database settings in site.conf and make sure they are correct.