Fix location of permalink.
Better database install script.