Added login and updated db build script