Working db connection stuffs.