changed datetime to timestamp, fixes #2 - updated table generation