Experiment with db model
Added 'last_position' helper
Fixed 'init_db'