There is no “right” script/resource. The most common two frameworks are ESX and vRP, both of which have features similar to what you describe; however, there are some others like [Release] Supertable [1.3] - A Lightweight MySQL database manager for FX-Server [ST]
Alternatively, you could learn Lua and make a framework of your own! The community is pretty helpful and there is an abundance of documentation to reference.