Implented sql database and rewriting of core

Eliminating not stop bug and trying to compute all point #0001
#0002 bug of region failure
Happen when the query point is in side of drawing panel, vertex
generation must be revisited