add marketing

Start working on marketing menu.
marketing

sql for marketing table.
move code from htaccess to config file.
start working on factory