First version of the interface system

Using databases instead of the previous shared preferences