Adding database helpers