Fixed major security issue with admin remove command. Cleaned up database-related code and database file.