Creating activity class, fixing database.php to connect and testing on localhost(working)