Both tutorials are more or less comparable. Both integrate Databases. The example code is available for both trainings so you can go along. The Java Tutorial shows two Databases: MySQL and HSQL. (A 100% Java Database.
The courses also require basic knowledge of SQL. This is covered for the largest part in the PHP course and if you want more, go here to learn.