Simple Python archiving script using sqlite