Diving into PHP, from install to SQL statements