Added further functionality to DB access