new function helper to typing data

Solve some issues and scope functions and adding new function to typing
data
Scope function error

Solve constructor function scope
Remove requiere function

unnecessary require function, change name of method ,no match with name
of method on Database class