use shared secrets file and sqlite database