add seconds
add close stmt
fix to fetch current time