added db and config
added hashing of passwords