change date to datetime
added template
added reset db commands