URL shortener with php, mysql and .htaccess