Added facebook API to composer file. Adjusted git ignore file to exclude composer vendor directory. 
Adjusted some files for inclusion of Facebook API classes. (Need further testing though).
Refactored to use PDO. Formatted source code.