Created helpers to work with db