moved db and authentication modules to server dir