Added some database stuff