Fix table name, switch from datetime to timestamp