Extending the Database (DB) Register the Database as follows: In the project’s script bar.ts we can import the foo.ts script in the following way.