Optimization

- commit() run at the end
- Main code feels whole database up so far