Use a db config instead of the ENV variables

Since it didn't work... trial an error my friends... trial and fricking error!

Signed-off-by: Jesus Fernandez <jesus.fndz@gmail.com>