changed bd and added md5 for passwords