adding switchdb.sql and current.sql, small adddb.sql fix