Converting sqlite2 to sqlite3 commands for PHP 5.4 compatibility

Modern versions of several popular linux distros are shipping with PHP 5.4.x which removed support for sqlite2 commands being used in the quickstart. This updates to support sqlite3 which is also supported in PHP 5.3.0 and above.