Design a real time database for banking transactions that would record actions of all transactions credited and debited. The algorithm should raise an alert to the bank manager in case any unauthorized debit is made. (model, algorithm and Cheddar implementation)