woking database and submit button connection