Added database support

Database support.
- login
- reading members list

still working on it...