Add phpdoc to signal return type of Loader::db

Adding the return type allows auto-completion systems
to automatically suggest methods and properties.