fixed maintenance page

The error was because the database was empty so I commented out the
functions for now.