Fixing sqlite init and saving for real this time.