Work on register fuction + auto connecting to db + removed some sql columns