A lightweight database handler