implemented basic sqlite-support. This will be used to save and restore the programs state.