made dates consistent and move the db login script off the public part