Class PTDatabase is added and used for Database handling