Gradlefy dbi

Making this a gradle project. Same as with common