move from draft to a real project

- fix bugs
- restructure the code
- define classes to manage users, connections and pools

still a work in progress