Added functionality to make database requests