update htaccess and db for deployment