Back-end structure beginning

This is a reuse of some old code. Still have to change a lot of things.

1. Use PDO
2. Implement better control of CRUD functions
3. Create config file that contains database connection data.
4. Create examples of CRUD use
Nothing, really.