added AppHarbour database fixes