Convert User Management to PDO and bootstrap

This seems to work, could do with a second pair of eyes over the code and someone trying to break it though. :)