Backend Services Update

-removed all mysqli connectivity and replaced it with a central PDO
dbHelper class which handles all database related processing.

-introduced function classes which handles the logic and database
functionality of api function calls.

-api.php update: added preliminary functions for Relations, User access
and Posts.