Now using registerpage.php instead of register.html.
Profile pic and cover pic uploads now working and properly indexed in DB.