modify dbscript and finish login and manager layout