Added a preliminary database structure (in sqlite); left to do is to create some triggers