offline version save point

database connection via mysqli