added phpinfo, and repair and optimize db

Added the ability to create a phpinfo page, repair and optimize the database.