added pxdb classes (almost finished; connects to db)