added common js file;
auto-loaded database helper;
edited header;
edited new advert page;