Delete files and fix database connection

delete files and update database connection