Fixed database send and other small things.