Server Work 1.4

Changed a lot of the code. The database is created differently and the
values are stored differently. Kept a copy of the original code in
separate file “dosage2.js” that is not being committed.