rps with database and sqlite