inserting and editing of articles

inserted some db functions, to update and insert articles