API that get info from a sqlite database