a few methods to get database entries