.htaccess and database fix.