Changed to close db on server close.

Might not even be needed, as connection is closed by DB once app dies.