DB handler for swansea group project