database class fixed for compatibility oauth2-server-php