Bootstrap database method

Please read before merging!!