moved format date function in tools package
added datetime persistency across sql inserts while capturing user information