add missing semicolon
remove trailing comma
add database keepalive