Still working on authetication with overriden SQL statments.