Added database for pushed messages. Gets the messages from the db if they exist in it