Organized files. Modified backend to use mysqli instead of old mysql.