[#1872] add database build.sh clean to top level build.sh script.  fix coverage building for database plugin