formatted to spaces and don't close db