Implement SQLite persistence

Also add general file structure