Add phpdoc to signal return type of Loader::db

Adding the return type to phpdoc of `Loader::db()` allows auto-completion systems to automatically suggest methods and properties.