Added user auth from db

Signed-off-by: Petr Kubat <xkubat11@stud.fit.vutbr.cz>