Added commands to build database