Starting to implement the abstraction from the sqlite database