adding scr for database