implemented orm lite database handling