remove index.php from url, fix DB table name