First version with some basic communication with the DB