basic auth almost  working with database. i think tables must be simple like in mkyongs tutorial