Simple Python database based chat application