login update 2

+ sql databases
+ status check function