Attaching db