user = raw_input "User:"
pswd = getpass.getpass "Password"
db = sqlite3.connect('/SABB/DATASETS/SENHAS')
c = db.cursor()
c.execute('SELECT * from sabb WHERE usuario="%s" AND senha="%s"' % (user, pswd))
if c.fetchone() is not None:
print "Welcome"
else:
print "Login failed"