configoptions, ramdb, filedb and minor fixes