Remove orphaned metadata table and cleanup database scripts
SQLite database support