Added some database logic