Fixed wrong type hint for database resource